package com.ibeeking.gmc.global.service.common.constants.enums;

/**
 * @Author ibeeking
 * @Date: 2019-04-26 16:04
 * @Description:
 */
public enum TenantDataAuthEnum {

    /**
     * 待审核
     */
    APPLYING(1, "待审核"),

    /**
     * 驳回
     */
    REFUSE(2, "驳回"),

    /**
     * 同意
     */
    AGREE(3, "同意"),

    /**
     * 终止
     */
    STOP(4, "终止"),
    ;

    private Integer value;
    private String name;

    TenantDataAuthEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getName(Integer value) {
        for (TenantDataAuthEnum ele : values()) {
            if (ele.getValue().equals(value)) {
                return ele.getName();
            }
        }
        return "未知";
    }
}
